package com.demo.road.dao;

import com.demo.road.bean.User;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface UserDao {
    User getUserByUserNameAndPassword(User user);

    void updateUser(User user);


    //    获取总数
    Long getTotalCount(Map<String, Object> paramMap);
    //通过参数查询分页数据
    List<Map<String, Object>> getMapListByParam(Map<String, Object> paramMap);
    //新增数据
    void addItem(Map item);
    //更新数据
    void updateItem(Map item);


    List<Map> getAll();
}
